import base from '../utils/base.js'
import * as axios from '../utils/http.js'

const image = {
	//登录
	save(data, callback) {
		return axios.post(`${base.rq}/resource/saveImage`, data,{}).then(res => {
			callback(res);
		}, () => {

		})
	},
    selectPages(data, callback){
        return axios.get(`${base.rq}/resource/selectImagePages`, data,{}).then(res => {
            callback(res);
        }, () => {

        })
    },
	delete(data,callback){
        return axios.get(`${base.rq}/resource/deleteImage`, data,{}).then(res => {
            callback(res);
        }, () => {

        })
    },
	
}

export default image
